//
//  UserModel.m
//  Inforcollection
//
//  Created by macbook on 15/12/9.
//  Copyright © 2015年 oceansoft.liw. All rights reserved.
//

#import "UserModel.h"

@implementation UserModel

+(instancetype)UserModelWithDic:(NSDictionary *)dict
{
    return [[self alloc]initWithDic:dict];
}

-(instancetype)initWithDic:(NSDictionary *)dict
{
    if (self=[super init])
    {
        self.accountAddress=[self checkStr:dict[@"accountAddress"]];
        
        self.name=[self checkStr:dict[@"name"]];
        
        self.dbId=[self checkStr:dict[@"dbId"]];
        
        self.gridName=[self checkStr:dict[@"gridName"]];
        
        self.gridid=[self checkStr:dict[@"gridid"]];
        
        self.homeAddress=[self checkStr:dict[@"homeAddress"]];
        
        self.idCardNo=[self checkStr:dict[@"idCardNo"]];
        
        self.phone=[self checkStr:dict[@"phone"]];
        
        self.sex=[self checkStr:dict[@"sex"]];
        
        self.uploadDataMode=[self checkStr:dict[@"uploadDataMode"]];
        
    }
    return self;
}
@end
